package com.lijiajian.dao;

import com.lijiajian.base.BaseMapper;
import com.lijiajian.pojo.Permission;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission,Integer> {
    Integer deletePermissionByRoleId(Integer roleId);

    Integer countPermissionByRoleId(Integer roleId);

    List<Integer> queryModuleIdByRoleId(Integer roleId);
    //通过用户id查询对应的资源列表（资源权限码）
    List<String> queryUserHasRoleHasPermissionByUserId(Integer userId);

    Integer countPermissionByModuleId(Integer id);

    Integer deletePermissionByModuleId(Integer id);
}